package org.oschina.api.user.user.model;

import org.oschina.Constants;
import org.oschina.bean.BaseBean;
import org.oschina.helper.query.annotation.Cache;
import org.oschina.helper.query.annotation.Table;

@Table(name=Constants.DB_USER)
@Cache(name=Constants.CACHE_USER,timeout=Constants.TIMEOUT_USER)
public class User extends BaseBean {

	private Integer id;
	private String account;
	private String username;
	private String password;
	private String token;
	private String headphoto;
	private Integer type;
	private Integer role;
	private String signature;
	private Integer follow_count;
	private Integer fans_count;
	private Boolean online;
	private Long last_login;
	private String register_identity; 
	private String register_ip;
	private Long register_time;
	
	//------------- 临时 -----------------
	private String ip;
	private Long last_post;
	
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public Integer getType() {
		return type;
	}
	public String getRegister_identity() {
		return register_identity;
	}
	public String getRegister_ip() {
		return register_ip;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public void setRegister_identity(String registerIdentity) {
		register_identity = registerIdentity;
	}
	public void setRegister_ip(String registerIp) {
		register_ip = registerIp;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public Long getLast_post() {
		return last_post;
	}
	public void setLast_post(Long lastPost) {
		last_post = lastPost;
	}
	public Boolean getOnline() {
		return online;
	}
	public void setOnline(Boolean online) {
		this.online = online;
	}
	public String getSignature() {
		return signature;
	}
	public void setSignature(String signature) {
		this.signature = signature;
	}
	public Integer getFollow_count() {
		return follow_count;
	}
	public Integer getFans_count() {
		return fans_count;
	}
	public void setFollow_count(Integer followCount) {
		follow_count = followCount;
	}
	public void setFans_count(Integer fansCount) {
		fans_count = fansCount;
	}
	public Integer getRole() {
		return role;
	}
	public Long getLast_login() {
		return last_login;
	}
	public void setRole(Integer role) {
		this.role = role;
	}
	public void setLast_login(Long lastLogin) {
		last_login = lastLogin;
	}
	public String getHeadphoto() {
		return headphoto;
	}
	public void setHeadphoto(String headphoto) {
		this.headphoto = headphoto;
	}
	public Integer getId() {
		return id;
	}
	public String getAccount() {
		return account;
	}
	public String getUsername() {
		return username;
	}
	public String getPassword() {
		return password;
	}
	public Long getRegister_time() {
		return register_time;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setRegister_time(Long registerTime) {
		register_time = registerTime;
	}
}